package com.itheima.demo04;

public class Test {
    public static void main(String[] args) {
        Clothing clothing = new Clothing("美z特斯邦威", "白色");
        Person p1 = new GirlFriend("孙小美", 165);
        GirlFriend girlfiend = (GirlFriend) p1;
        girlfiend.cooking();
        girlfiend.washClothing(clothing);

        Person p2 = new BoyFriend("宫本宝藏", 170);
        BoyFriend boyFriend = (BoyFriend) p2;
        boyFriend.working();
        boyFriend.goShoping(girlfiend);
    }
}
